package com.xyzh05.service.impl;

import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xyzh05.dao.NotepadDao;
import com.xyzh05.model.Notepad;
import com.xyzh05.service.NotepadManager;

@Service("notepadManager")
@WebService(serviceName = "NotepadService", endpointInterface = "com.xyzh05.service.NotepadManager")
public class NotepadManagerImpl extends GenericManagerImpl<Notepad, Long> implements NotepadManager {
    NotepadDao notepadDao;

    @Autowired
    public NotepadManagerImpl(NotepadDao notepadDao) {
        super(notepadDao);
        this.notepadDao = notepadDao;
    }

	public List<Notepad> searchNotepad(List<Long> userIds, Short notepadType, Integer start,
			Integer end) {
		return notepadDao.searchNotepad(userIds, notepadType, start, end);
	}

	public List<Integer> getStatisticCount(List<Long> userIds, Short notepadType) {
		return notepadDao.getStatisticCount(userIds, notepadType);
	}
}